#include <REGX52.H>
#include "MatrixLED.h"
//普中的点阵LED的74HC595的使能端低电位有效
//需要将点阵LED左侧J24的左两个针脚短接
//否则不能长时间显示


//code是将数组放在code中code的空间大但不能更改了（不占用RAM了）
unsigned char code Animation[]=
{
	0xFF,0x10,0x10,0xFF,0x00,0x00,0x7C,0x54,0x54,0x74,0x00,0x00,0x7C,0x04,0x04,0x04,
	0x00,0x7C,0x04,0x04,0x04,0x00,0x7C,0x44,0x44,0x44,0x7C,0x00,0x00,0xFA,0x00,0x00
};//(32列)

void main()
{
	unsigned char x = 0;
	unsigned char y = 0;
	unsigned char t = 0;
	MatrixLED_Init();
	while(1)
	{
		for(y=0;y<8;y++)
		{
			MatrixLED_ShowColumn(Animation[y+x],y);
		}
		t++;
		if(t==10)
		{
			x++;
			t=0;
		}
		if(x==24)
		{
			x=0;
		}
	}
}
